package org.example.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yu
 * @since 2024-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_ticket")
public class UserTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车次
     */
    @TableField("number")
    private String number="";

    /**
     * 出发站
     */
    @TableField("nowAddress")
    private String nowAddress="";

    /**
     * 目的地
     */
    @TableField("nextAddress")
    private String nextAddress="";

    /**
     * 发车时间
     */
    @TableField("beginTime")
    private String beginTime="";

    /**
     * 到站时间
     */
    @TableField("endTime")
    private String endTime="";

    /**
     * 车厢号
     */
    @TableField("carriage_number")
    private Integer carriageNumber=1;

    /**
     * 座位号
     */
    @TableField("seat_number")
    private Integer seatNumber=1;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status=0;

    @TableField("user_id")
    private Integer userId=0;

    @TableField("account")
    private String account="";

    @TableField("name")
    private String name="";
    @TableField("price")
    private BigDecimal price= BigDecimal.valueOf(0);
}
